package com.ctshk.rpc.train.entity.es;

import com.ctshk.common.constant.ElasticSearchConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

@Data
@ApiModel(value = "MainDataStationCacheDTO", description = "站点数据")
@Document(indexName = ElasticSearchConstant.TRAIN_STATION_INDEX, createIndex = true)
public class MainDataStationCache implements Serializable {

    private static final long serialVersionUID = 1L;


    private Long id;

    @Field(type = FieldType.Keyword)
    @ApiModelProperty(value = "站点名称")
    private String stationName;

    @ApiModelProperty(value = "城市id")
    private Long cityId;

    @ApiModelProperty(value = "城市名称")
    private String cityName;

}